using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_DataGrid_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.DataGrid);
            args = new Type[]{};
            method = type.GetMethod("get_BindingData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_BindingData_0);
            args = new Type[]{};
            method = type.GetMethod("get_Rows", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Rows_1);
            args = new Type[]{};
            method = type.GetMethod("get_Columns", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Columns_2);
            args = new Type[]{typeof(huqiang.Data.FakeStruct), typeof(huqiang.Core.HGUI.UIElement), typeof(huqiang.Core.HGUI.UIInitializer)};
            method = type.GetMethod("Initial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Initial_3);
            args = new Type[]{};
            method = type.GetMethod("Refresh", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Refresh_4);
            args = new Type[]{typeof(huqiang.UIComposite.DataGridColumn)};
            method = type.GetMethod("AddColumn", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddColumn_5);
            args = new Type[]{typeof(System.Int32)};
            method = type.GetMethod("RemoveColumn", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveColumn_6);
            args = new Type[]{};
            method = type.GetMethod("ClearData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ClearData_7);
            args = new Type[]{};
            method = type.GetMethod("ClearColumn", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ClearColumn_8);
            args = new Type[]{typeof(huqiang.UIComposite.DataGridItemContext[])};
            method = type.GetMethod("AddRow", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddRow_9);
            args = new Type[]{typeof(System.Int32)};
            method = type.GetMethod("RemoveRow", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveRow_10);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("Update", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Update_11);
            args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
            method = type.GetMethod("FindItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindItem_12);

            field = type.GetField("CursorX", flag);
            app.RegisterCLRFieldGetter(field, get_CursorX_0);
            app.RegisterCLRFieldSetter(field, set_CursorX_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_CursorX_0, AssignFromStack_CursorX_0);
            field = type.GetField("CursorY", flag);
            app.RegisterCLRFieldGetter(field, get_CursorY_1);
            app.RegisterCLRFieldSetter(field, set_CursorY_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_CursorY_1, AssignFromStack_CursorY_1);
            field = type.GetField("Position", flag);
            app.RegisterCLRFieldGetter(field, get_Position_2);
            app.RegisterCLRFieldSetter(field, set_Position_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Position_2, AssignFromStack_Position_2);
            field = type.GetField("GridLineWidth", flag);
            app.RegisterCLRFieldGetter(field, get_GridLineWidth_3);
            app.RegisterCLRFieldSetter(field, set_GridLineWidth_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_GridLineWidth_3, AssignFromStack_GridLineWidth_3);
            field = type.GetField("eventCall", flag);
            app.RegisterCLRFieldGetter(field, get_eventCall_4);
            app.RegisterCLRFieldSetter(field, set_eventCall_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventCall_4, AssignFromStack_eventCall_4);
            field = type.GetField("ColumnResized", flag);
            app.RegisterCLRFieldGetter(field, get_ColumnResized_5);
            app.RegisterCLRFieldSetter(field, set_ColumnResized_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_ColumnResized_5, AssignFromStack_ColumnResized_5);
            field = type.GetField("DecayRate", flag);
            app.RegisterCLRFieldGetter(field, get_DecayRate_6);
            app.RegisterCLRFieldSetter(field, set_DecayRate_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_DecayRate_6, AssignFromStack_DecayRate_6);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.DataGrid());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.DataGrid[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_BindingData_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.BindingData;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* get_Rows_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Rows;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* get_Columns_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Columns;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* Initial_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Core.HGUI.UIInitializer @initializer = (huqiang.Core.HGUI.UIInitializer)typeof(huqiang.Core.HGUI.UIInitializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @element = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.Data.FakeStruct @mod = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Initial(@mod, @element, @initializer);

            return __ret;
        }

        static StackObject* Refresh_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Refresh();

            return __ret;
        }

        static StackObject* AddColumn_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGridColumn @column = (huqiang.UIComposite.DataGridColumn)typeof(huqiang.UIComposite.DataGridColumn).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddColumn(@column);

            return __ret;
        }

        static StackObject* RemoveColumn_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @index = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveColumn(@index);

            return __ret;
        }

        static StackObject* ClearData_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ClearData();

            return __ret;
        }

        static StackObject* ClearColumn_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ClearColumn();

            return __ret;
        }

        static StackObject* AddRow_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DataGridItemContext[] @content = (huqiang.UIComposite.DataGridItemContext[])typeof(huqiang.UIComposite.DataGridItemContext[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddRow(@content);

            return __ret;
        }

        static StackObject* RemoveRow_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @index = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveRow(@index);

            return __ret;
        }

        static StackObject* Update_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @time = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Update(@time);

            return __ret;
        }

        static StackObject* FindItem_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @col = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @row = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.DataGrid instance_of_this_method = (huqiang.UIComposite.DataGrid)typeof(huqiang.UIComposite.DataGrid).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.FindItem(@row, @col);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


        static object get_CursorX_0(ref object o)
        {
            return huqiang.UIComposite.DataGrid.CursorX;
        }

        static StackObject* CopyToStack_CursorX_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.UIComposite.DataGrid.CursorX;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_CursorX_0(ref object o, object v)
        {
            huqiang.UIComposite.DataGrid.CursorX = (UnityEngine.Texture2D)v;
        }

        static StackObject* AssignFromStack_CursorX_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Texture2D @CursorX = (UnityEngine.Texture2D)typeof(UnityEngine.Texture2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            huqiang.UIComposite.DataGrid.CursorX = @CursorX;
            return ptr_of_this_method;
        }

        static object get_CursorY_1(ref object o)
        {
            return huqiang.UIComposite.DataGrid.CursorY;
        }

        static StackObject* CopyToStack_CursorY_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.UIComposite.DataGrid.CursorY;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_CursorY_1(ref object o, object v)
        {
            huqiang.UIComposite.DataGrid.CursorY = (UnityEngine.Texture2D)v;
        }

        static StackObject* AssignFromStack_CursorY_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Texture2D @CursorY = (UnityEngine.Texture2D)typeof(UnityEngine.Texture2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            huqiang.UIComposite.DataGrid.CursorY = @CursorY;
            return ptr_of_this_method;
        }

        static object get_Position_2(ref object o)
        {
            return ((huqiang.UIComposite.DataGrid)o).Position;
        }

        static StackObject* CopyToStack_Position_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DataGrid)o).Position;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Position_2(ref object o, object v)
        {
            ((huqiang.UIComposite.DataGrid)o).Position = (UnityEngine.Vector2)v;
        }

        static StackObject* AssignFromStack_Position_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector2 @Position = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.DataGrid)o).Position = @Position;
            return ptr_of_this_method;
        }

        static object get_GridLineWidth_3(ref object o)
        {
            return ((huqiang.UIComposite.DataGrid)o).GridLineWidth;
        }

        static StackObject* CopyToStack_GridLineWidth_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DataGrid)o).GridLineWidth;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_GridLineWidth_3(ref object o, object v)
        {
            ((huqiang.UIComposite.DataGrid)o).GridLineWidth = (System.Single)v;
        }

        static StackObject* AssignFromStack_GridLineWidth_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @GridLineWidth = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.DataGrid)o).GridLineWidth = @GridLineWidth;
            return ptr_of_this_method;
        }

        static object get_eventCall_4(ref object o)
        {
            return ((huqiang.UIComposite.DataGrid)o).eventCall;
        }

        static StackObject* CopyToStack_eventCall_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DataGrid)o).eventCall;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_eventCall_4(ref object o, object v)
        {
            ((huqiang.UIComposite.DataGrid)o).eventCall = (huqiang.UIEvent.UserEvent)v;
        }

        static StackObject* AssignFromStack_eventCall_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.UserEvent @eventCall = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DataGrid)o).eventCall = @eventCall;
            return ptr_of_this_method;
        }

        static object get_ColumnResized_5(ref object o)
        {
            return ((huqiang.UIComposite.DataGrid)o).ColumnResized;
        }

        static StackObject* CopyToStack_ColumnResized_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DataGrid)o).ColumnResized;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_ColumnResized_5(ref object o, object v)
        {
            ((huqiang.UIComposite.DataGrid)o).ColumnResized = (System.Action<huqiang.UIComposite.DataGrid, huqiang.UIComposite.DataGridColumn>)v;
        }

        static StackObject* AssignFromStack_ColumnResized_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Action<huqiang.UIComposite.DataGrid, huqiang.UIComposite.DataGridColumn> @ColumnResized = (System.Action<huqiang.UIComposite.DataGrid, huqiang.UIComposite.DataGridColumn>)typeof(System.Action<huqiang.UIComposite.DataGrid, huqiang.UIComposite.DataGridColumn>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            ((huqiang.UIComposite.DataGrid)o).ColumnResized = @ColumnResized;
            return ptr_of_this_method;
        }

        static object get_DecayRate_6(ref object o)
        {
            return ((huqiang.UIComposite.DataGrid)o).DecayRate;
        }

        static StackObject* CopyToStack_DecayRate_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DataGrid)o).DecayRate;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_DecayRate_6(ref object o, object v)
        {
            ((huqiang.UIComposite.DataGrid)o).DecayRate = (System.Single)v;
        }

        static StackObject* AssignFromStack_DecayRate_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @DecayRate = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.DataGrid)o).DecayRate = @DecayRate;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.DataGrid();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
